/**
 * 错误管理
 */
export const errorMgr = _ as ErrorMgr;
export class ErrorMgr {

    init() {
        (errorMgr as any) = this;
        //全局捕获错误
        window.onerror = (msg, url, l, c, error) => {
            // alert(msg + "\n" + error.stack);
        }
    }

    error(...err: any[]) {
        console.error(...err);
    }

}